﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;


namespace GameWP
{
    public class DBTexture : Database
    {
    #region Properties
        public List<Texture2D> listBG, listLoading;
        public Texture2D UpLevel, StartGame,IconUp, IconDown, Lose, Win;
        public List<Texture2D> ViewIcons;
        public List<Texture2D> listGuide;
        public List<Texture2D> listAppearAura;
        public List<Texture2D> listLayerBehind, listLayerFront;
    #endregion

    #region Initiation
        public DBTexture(ContentManager content, GraphicsDeviceManager graphic)
        {
            _content = content;
            _graphic = graphic;
            
            //Init
            listLayerBehind = new List<Texture2D>();
            for (int i = 0; i < 6; i++)
                listLayerBehind.Add(_content.Load<Texture2D>("Textures/Layer BG/Behind/" + i.ToString("00")));
            listLayerFront = new List<Texture2D>();
            for (int i = 0; i < 1; i++)
                listLayerFront.Add(_content.Load<Texture2D>("Textures/Layer BG/Front/" + i.ToString("00")));            
            listBG = new List<Texture2D>();
            for (int i = 0; i < 10; i++) 
                listBG.Add(_content.Load<Texture2D>("Textures/Background/bg_" + i.ToString("00")));
            listLoading = new List<Texture2D>();
            for (int i = 0; i < 24; i++)
                listLoading.Add(_content.Load<Texture2D>("Textures/Loading/" + i.ToString("00")));
            listGuide = new List<Texture2D>();
            for (int i = 0; i < 4; i++)
                listGuide.Add(_content.Load<Texture2D>("Textures/Guide/" + i.ToString("00")));
            listAppearAura = new List<Texture2D>();
            for (int i = 0; i < 20; i++)
                listAppearAura.Add(_content.Load<Texture2D>("Textures/Aura/Fire/" + i.ToString("00")));
            UpLevel = _content.Load<Texture2D>("Textures/Other/UpLevel");
            StartGame = _content.Load<Texture2D>("Textures/Other/StartGame");
            ViewIcons = new List<Texture2D>();
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/ViewR"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/ViewL"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/ViewLuffy"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/Pause"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/Shop")); // Bo do Icon Shop chung vao day
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/Lose"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/Win"));
            ViewIcons.Add(_content.Load<Texture2D>("Textures/Other/LuffyBar"));
            IconUp = _content.Load<Texture2D>("Textures/Other/Up");
            IconDown = _content.Load<Texture2D>("Textures/Other/Down");            
        }
    #endregion  
    }
}
